Use quit() instead of exit()