Handle exceptions due to missing GUI dependencies.