Add error handler only once

fixes #240
Fixe rejoining room after nickname conflict

fixes #241
Merge branch 'master' into plugins