exit on trap
improve errorpane to discard empty STDERR buffer