[python/cli:ShellServerCommand] more robust error handling; more logging