Adding in the close session so it will not break after many uses