exception handling working and events detected.