Modify `server_impl` to exit if `accept()` fails