exit when no command declared
return empty string when nothing returned from handler