Fix the done/error callbacks for threaded method calls.

Still need to fix the corresponding tests though.