Fix for interruptible FFI handling