Improve process error checking in perf runner

Summary: - replace invariants with asserts
- check process running status immediately
- sleep a bit. proc_open always initially has a valid process, as it launches a shell

Reviewed By: @ptarjan

Differential Revision: D1543479