Document close_callback necessary to process close alerts