Correctly handler error when opening a bus