can now handle gracefully disconnect of slave