Make mongobox objects context managers.