BUGFIX: Get rid of a memory leak in the getter by ensuring sessions always get closed after a request