Improve exception logging in plugin
Add support for inline stylesheets