Catch exceptions from result set too.
Escape resource name.
Improve print CSS.
Tweak buttons in .smallheader.
Catch exceptions. PR upstream.