removed exit on error statement