handle connection errors, fix tab completion on OSX
increased version to 1.0.8