To stop Abra from teleporting from battle you must use a move such as Mean Look or Block to stop its escape or moves like Taunt to stop it from using Teleport.