added error loggin for widget exceptions