Error handling and cleanup.

Add username and password for logging into the Warehouse.