Stop slave before master