Add error handling for SDL_CreateWindow