Improved error handling when opening and saving .mpm files