Properly release resources from bootstrap.