emit close event only when listening for notifications