cleanup ports and logins