NULL check for root
Close app if initialization fails

I gotta stop being so impulsive with these commits today.