Updated to exclude certain files
Added a disconnect listener