Add API to allow setting an exception handler for user provided callbacks Signed-off-by: Felix Fietkau <nbd@nbd.name>