Tried to fix the problem of middag plugin stopping to report menus after a while. Fixes #36.
Fixes #37.