Catch interrupt signal to stop processing