handle the 'close' event on entry pages too