Why not put the code from below here, instead of on the exit path? Generally those are meant to be universal cleanup on the way out.