Hide the window object during termination of webapp