switched out exit methods for error crash method