added __del__ method in Failure