Added try/catch wrapper around each public method.
Bug fix: upload and auto-uploads are synchronized.

Previously, a queued upload would erroneously start while another
upload was running.