Do not use weak_ptr when using resources.