Close preview if document was unpublished.