Method that closes the view. If only one view exists for a document and the Close method is called it will also cause the Document to close.