Updates to v2 api library. Add try-catch in mqtt client for now.