pipe deactivation have been implemented

implement pipe deactivation use case #367