code to remove mount points on failure exit