if quit is called from a signal it will get extra arguments