Fix invalid username patch to disconnect correctly