Pass the return code to a possible next command in PROMPT_COMMAND
Don't replace a previous set PROMPT_COMMAND

This ensures that the system and the user can register prompt commands
which won't be overwritten by the bashrc.