improve closing
unref timeout on tests