Add signal handler.