Currently create_unit executes a get_unit call after it has created the unit which makes create_unit fail sometimes with the following error message: Unable to create unit: unit does not exist (404)
Since fleet already returns a response code when handling units create_unit should simply check this response code and not call get_unit.