Whats the correct why to handle errors in the following scenario and only call reply once.
Assume to resize image/pdf (convert - imagemagick) and pdf output (ghostscr