[FIX] Make sure global handlers remove errors.

Previously, it would not remove thrown errors that were handled by the
global handler.
Add uncaught error docs.