added finalizer method to BasicConnectionImpl