Only assemble when the core is paused

It's a bad idea to clear the JIT while it's still executing.