Remove signal handling race condition from RunProcess

Fixes #1061