Add check for the settings.php file on destroy