checkpoint, resource cleanup