Updated portlogger to check on the port availability