Add better error handling with socket code in freshclam. Tell the HTTP server to close the connection when submitting stats.