raise error on any resource warning left.