add CloseHandler to authorisation window