A quick look tells me that the root cause of this problem is that the PHPInclude mixin forces a stop_service call, in a begin... ensure block, causing the service instance to be deleted before resources are removed.