Description
Recently the tests have started failing intermittently but frequently due to port conflicts. The tests have always be written to try and find free ports and then use them. However it seems that recently between finding the free ports and using them that these "free" ports are being used by some other processes. Therefore the tests need to be cleaned up to ensure there is no time window between finding the free port and the server opening it.