Keep a big hacky reference to the connection in the global scope