Auto open/close the error window.