The class is not named correctly. For Joomla to call a method of your plugin's class, it has to follow the standard naming convention. Based on your xml file, you have created a system plugin, so the class should be named as follows:
class plgSystemMyPlugin extends JPlugin{
That should make it work (i.e. die often)!