add coveralls
add wait_closed