Added initialization of SDL and video with exception handling