Changed faulty return to exit()