adapt the quit plugin to the new framework and add an optional exit code
add the default irc port in case core.port is undefined