Fix the build by mocking close now that it is called on MySQL connections.