Nicer error message when unable to create window.