stub error handlers
release public clietn
some logging
fix missing init function and add handler for broken promises