Disconnect

Refactoring the existing HttpUrlConnection usage (catching errors etc)