Implemented mechanism to handle failures in OpenGL creation

This pull request implemented mechanism to handle failures in OpenGL creation so that Dynamo will not crash as a result.