Deamon bug fix 1.

Signed-off-by: Andreas Coroiu <andreas.coroiu@gmail.com>
Fix for issue #12 that broke uploading on mobile.

Decided to just put a try/catch.