Seismic stability of elasto-plastic frames