Wait for completion of sending

Last commit started an asynchronous operation, but did not wait
for its completion. Use more functions of coveralls to implement
clean asynchronous handling of the whole coverage data.