Prevent error messages from showing when the close event panel is clicked