It would be really helpful, if you could share some code. If you are using default popup, below code works.
map.infoWindow.on('hide', function(){
alert("infoWindow hide event");
})
If you have created you own popup, then you should use that instance to listen to "hide" event