Emit error correctly across db's when error in client callback