hacky virtual proctor working
better window closed handling