Catch non-trappable exceptions.
Added codemirror.