Saved folders

Added functionality to save the folders to the settings. And added a
null check for the process killing.