Weird pill shaped icon in the dock
I saw this under the Downloads folder and later it moved under trash.


In Safari, downloads list, hit "clear".
In trash, select all .download files ( kind: "Safari Downloads") and right click > "delete immediately".
In Terminal, run 

killall Dock