guests close on document click