messages: Close port after downloading mail.