Refactor start command to method
Refactor start-client command to method
Refactor try-restart command