Added restart logic.
The application restarts after some events.
(ae if the Look & Feel was changed)