PLATFORM-364 Connection logic to prevent multiple connections across threads