MULE-6789 - fixing failing test case. The problem was that the connection should not be set to null before disconnect