From GridLAB-D Wiki
server_quit_on_close - Controls whether GridLAB-D shuts down when the last server connection closes.
Synopsis
host% gridlabd -D server_quit_on_close=0|1|FALSE|TRUE host% gridlabd --define server_quit_on_close=0|1|FALSE|TRUE #set server_quit_on_close=0|1|FALSE|TRUE
Description
When a server finishes servicing an incoming request, it evaluates whether there are any pending requests. If there are none and the connection is closed, GridLAB-D will shutdown the simulation if the server_quit_on_close evaluates to a non-zero quantity.