This is needed because polling connection may break due to network issues. We need to clean it up.