Fix unused stop channels.
Fix connection removal issue.
Fix unexpected newlines in commands.