mono/mono — pull request #267 by joncham (2012-03-29 21:00:46+00:00)
Title: Call mono_thread_exit rather than Sleep. Embedders may be unloading the ...

...runtime, and the Sleep loop will crash since it keeps executing even though the library has been unloaded from memory.

Contributed under MIT/X11 license.