added threaded server from web, runs but quits on error when client sends data