Emit closed instead of opened event