Whenever sending something to a custom window, I like to make sure the window is open first.

if (!$window(@somewindow)) window -e @somewindow