Fix error "Address already in use".

Some users have faced the same trouble.
See #3663.