Remove unused standard library require statements
Add platform guard for guard
Require socket for SocketError
Require faraday for Faraday::Error::TimeoutError and Faraday::Error::ConnectionFailed
Require multi_json for MultiJson::DecodeError