[core] Fix NameError and simplify code.
[core] Remove unblockable from commands in coretasks.

Unblockable was meant for functions that keep track of events.