Handle signals to quit gracefully