Don't avoid reading pid even if ticks are being skipped.
Do not write pid to file if it is 0
Optimize time spans of flapping test steps
Add a :restart_expect_stopped variable for expected process state after restart, and handle process action timeouts out of the common action handler.