Taking snapshot at the end of things