Added new "simulateCrash" function
simulateCrash should not be processed in a dedicated thread