raise the DOCUMENT_REQUESTTOCLOSE event and debug output.