[PATCH] Fix an issue where bird may accidently close a socket