Catch errors on api->scanForQuadcopters() call

Fixes #5