make emacsd automatically restart on unclean exit