Compatible with wkhtmltopdf 0.12.0 and improved logging on errors