fix(core): handle callback exception properly

Signed-off-by: Johny Jose <johny@playlyfe.com>