proper window close actions for stream viewers