call finish on gif only once