error handling during reverting snapshots implemented

Change-Id: Iae894055900b64bb67e3c18843883246db6483fb