Closing some applications is not recognized by my default gnome layout dock. The icons of the applications just stay in the dock even though they are closed.
This is only the case for some applications, for example nautilus is always registered.
In the picture you can see what I mean. Only my web browser is open. However, it shows that two other programs are open.