Corrected - ERROR WHILE APPLICATION EXIT