Only open the message buffer if the return code is not 0.

Always show the pandoc command as a message.

Make sure the temporary file is deleted.