end session closes the session but doesn't actually display anything, but otherwise tested and working