I don't really understand. Do you want to distinguish the cases where the js callback throws an exception and end up returning `0` and the case where the JS callback explicitely return `0` in case of "more expected" error?