Handle asynchronous callback errors safely and easily