Error with closing connections corrected.