Auto-resetting all non-main thread contexts