commit before final disconnect