Restart listener socket after error.