handle port access error