Use make_default_context for initialization and use a clean-up function for the context