Yeah, first check for error, then defer closing..