Error Short Circuiter (ESC) function decorator