Implemented a signal handler to graceful shutdown Quassel when SIGTERM or