Forbid exiting when creating template or recording video