Stop slave in case it is currently running, before you set master