fixed cleanup to disconnect to local fifo