Hoist error handling up for general purpose