Fix shutdown message on failure.
Refactor uploadFile to use H2O connection.