Fixed exceptions and multithreading not properly being detected, causing memory trashing when sprawl is used in a multithreaded environment.