fixed a break statement in the main menu, and added some proper exception handling.