Connections need better error handling for both C++ and Java.
Connections need better error handling for both C++ and Java.