Move callbacks to new package, fix output when returning null, update exception