Add shutdown signals to close server