fixed npe on ownerConnection in clientConnectionManager

fixes #3169
If you understand what I am trying to do, I am open to suggestions(alternative implementation). If not please ask where you don't understand so that we can work this out.