finish env