``exec`` is asynchronous, so the ``complete`` call must be in a callback. I've fixed them.