Added a check for 'loss of port' to the services.