Tidy up exception handling within ResourceHelper