Add socket shutdown
Add 404 + 500 error handling, close socket when 404 + 500 occurs
Merge pull request #55 from wagnert/0.5.8-beta

Add socket shutdown + Add 404 + 500 error handling, close socket when 404 + 500 occurs