Added a delay before getting gwstats, this is done to let the application have some time to register a port (handler).