Block user from closing window

https://rbictg.atlassian.net/servicedesk/customer/portal/53/IREQ-2301