server: Use SIGQUIT instead of SIGTERM to terminate a thread.

This allows keeping the default SIGTERM behavior of killing the whole
process.
5 files changed