Few attempts to fix crashes during shutdown or a race condition (add_fd, rm_fd); backtraces are pretty much similar in all cases