modify raw batch channel so that it will be properly connected and
disconnected.