Prevents multiple cleanup calls