Attempt to fix closing connections