Message box for loading and saving script failure

Signed-off-by: Marius Avram <marius.avram1309@gmail.com>
It seems the message box is leaked at the end of the function. You need to delete it before exiting.
But here, it's just simpler to create the message box on the stack directly.