Set anonymous connection on unsuccesful login or disconnect