Added closing events