adds the $finally method