fixed wrong usage of mutex.
Simplified the actioncontroller.
Attempt at fixing the window chrome bug.

It seems that minimizing/maximizing often, makes the taskbar button disappear when System.Windows.Shell.WindowChrome is set. Removing it and shortly setting it back afterwards seems to fix this issue.