unix: don't clear flags after closing UDP handle