Added return of number resource on teardown.