Added error checking to GME and OpenMPT