More resource cleanup

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>