assign originalconnectioncls outside of try/finally block