Oops, need env.close() too.