Added exception handling with hosts instanciation and upload requests