Fix bug where newlines were not trimmed from url.
Require the didloseconnection message
Delete connection code from the view controller.