Return errors in some places that led to panicking
Return errors in some places that led to panicking

coffeecup-winner/unwind-mc,coffeecup-winner/unwind-mc,coffeecup-winner/unwind-mc,coffeecup-winner/unwind-mc,coffeecup-winner/unwind-mc