just close on error