Ensure MantidPlot exits with 0 status code on script success.

Refs #9559