Changed override method named onExit from onEXit.