Add option to disable automatic error rendering

Tests included.