Added Exit() functions to all classes.