Attempting to address 500 errors with manual connection close calls.