protection against connect to "slave becoming master" fixes #5