If the program returns failure, the password must be wrong, so qmail-popup reports that and waits for a different password.
The program is presumed to have finished the POP3 conversation, so qmail-popup exits.