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