Added Plugin::onError() to handle plugin exceptions

I called it Error instead of Exception because some class names might therefore end in "Exception" and lead to confusion that they are subclasses of \Exception.
This calls the Plugin::onError() method when an exception is thrown from a plugin command execution, event execution or a plugin task execution.