Switch finally clause to be a simpler bool check