Add unref() calls in abstract shell surface cmd functions

Targets #556.