Hi Wasif,
Indeed this problem happens when the handler is called and the page is already destroyed.
I solved this problems by adding a local variable to the layout called IsDestroyed which starts at False.
On the event handler OnDestroy, I set this variable to True and then on the handlers, I only do screen interaction if the IsDestroyed is False:

Something like the example above.
Hope it helps.
Regards,
João