Added host and port to config
Added calling modules' 'deinit' methods when shutting down