Add exceptions to OpenGlWindow constructor.