Implemented Exception handling

Implemented Exception handling in BackgroundChanger.cs