Get rid of uses of the deprecated 'msg.connection'
Merge pull request #435 from vkurup/404-connection-deprecated

Get rid of uses of the deprecated 'msg.connection'