capture manual quiting to print errors