Renamed deleteOnClose to cleanup.
Method renaming.