add "restart_limit" option

Stop the process if its "restart_time" becomes greater than "restart_limit".