Fix odd behaviour when using interrupts in the luacontroller