Fixed error message when unable to cleanup a resource