Try not closing on error