This will allow error reporting before attempting to load GUI