core::rt: All context switches are followed by a cleanup action
wip