Error session was not being closed.