Fix socket errors, add better user feedback, add server_shutdown