clean up of port and server variables