Added onClose() to the rest of the standalone persectives (it worked well for Admin)