Clean up

Put `project.ConfigurationManager` inside `try/with` to prevent exceptions.