Open a new document automatically after closing all documents.