Currently the server can be closed by SIGINT (sent e.g. by Ctrl-C) and SIGHUP (sent by console when it closes).
We should also support SIGTERM because most tools that can be used to stop processes use it by default. For example kill program and Terminate Process keyword use it.