Add port-in-use error handling