close HTTP server when closing app, fix div by zero in infopane