Fix issue with callbacks causing infinite loops while VM is suspended.