Fixed crash where mcf pointer could be deleted outside lock
Fixed crash where ipc has short buffer and doesnt check
Fixed crash where exception in thread doesn't get handled
Merge pull request #861 from lodle/beta-crashfix

Beta crashfix