move signal handlers to their own file