fixes #131; rescues config serialization
improved error dialogs
added null check