Hi Kamesh,
I wonder about this strange behavior.
But WDDOEXIT will always trigger immediately after the source code during exit of the application.
So in your condition, please check your source coding and also make sure that you are not using any time delay for your application.
BR,
RAM.