Change receive with manages lifecyle in alligatorapp.java