raise error on any resource warning left.
Merge pull request #35 from fizyk/close_resources

raise error on any resource warning left.