Handle fatal signals and gracefully shut down