now also catch signals and quick_exit