Automatically cleanup checkpoint