handles retrying http problems when launching and fixed headnode fail cleanup
Merge pull request #5 from mtgreenway/http-error-retry

Fixed two bugs and added a retry for http errors