Added logging of plugin errors to bot log