* Add exception handling to request call to prevent failure in setup_platform if host is down * update for comments * update test for state being none * remove unused import