generalize error handling
remove some commented out code and fix some comments
Convert in_proc as an optional keyword argument for call_command_async