fixes exit and close event