Changed destroy of session.