Added dispose() method to shut down client processes on quit - should be
called automatically on quit but not working for some reason