Added --version flag
Catch exception raised if unable to connect to remote server