s3-prefork: Improve error detection when handling new connections