added some exception handling on starting GL thread