updated init_server.py to fail when keys can't be written.