Added ability to discard the pending change set from the session.