Fixing connector and resource exception handling