Correctly update the last block hash on disconnect