Now the decoration is destroyed if the application is closed.