return 500 reponse code if socket is unavailable
Merge pull request #9 from takano32/master

restrict SEGV