updated exception hanldle for app widget