Correctly call callback after handling the rror in CPS REPL.