add some startup checks

and exit on failures