Reconnect after connection lost + javadoc