Fixed bug where res and tech manager would give errors when quitting