def _finalize(self): """ Do anything necessary to finish run except close files. """ ReplicaExchange._finalize(self) # Clean up cached context and integrator. if hasattr(self, 'context'): del self._context, self._integrator return