Fix the issue of no error callback when clamav daemon is not running or the socket specified is incorrect, by applying the patch courtesy of billywhizz.