Properly close inputStream in OAuthUtils