Merge pull request #12 from krnekit/master

Added ability to retrieve socket error string for client