fix end so it works with deleting the sessionID on the request handler