Create new connection if called in a different thread