exit properly on sigquit