redirect stderr to stdout when using dialog windows

fix on improperly placed return instead of exit