Rename abc::exception::_uncaught_exception_end() to write_with_scope_trace()

Make this static method more generic by making it able to write on any
stream, not just stderr; accordingly, rename it to reflect its broader
usage.
Sort abc::exception methods