restore signal handlers