Clean up for PSR compliance (run PHP CodeSniffer over code)
Removed old socket exception.