Add killOnExit option to shutdown the server on exit