This is an old revision of the document!
This is a very simple and easy fix all you have to do is disable a feature of Lion that was badly coded, to not take into account headless programs like serviio.
Go into System Preferences, General, and remove the check from the box that states: “Restore windows when quitting…”, all your all done.