Added restart command and script exiting if no clients are active