Better error handling
First pass at startup script