Added handling of terminating APIs like ExitProcess