Revert "Added detach to the connection so it couldn't be utilized"

This reverts commit edf480832945f14f66703b0e77338e7641d53aa1.