added clumsy error exception handling when wx doesn't load