Try this instead of /close
window -c @ $+ $window(status window).wid