Workarounds for random Mono bugs.