Just to let you know, the reason why in the first place I returned a `connection` instead of keeping a closure with the server was to ensure that multiple applications could run at once by not sharing the same state variables.
Anyway the tests seems to not conflict to each other because we start and shutdown only one server at a time.
So I don't think it will be a problem to keep this variable in the end.