Close the session early when viewing files