fixed system abort/exit functions