Added debug output upon errors, this should later on be an option to mute.