Instabilities and failure in elongational flow and melt spinning of fibers