Fixed thread resuming. Pipe still not working

Thread resuming fixed - apps no longer crash.
Need to add dumb hook in case of dumb app