Catch signals and call stop()