Plugins now handling their own close events

When ircbot is closing, it sends close messages to all loaded plugins so they can handle the closing event by themselves.