on_end_behavior and on_start_behavior working in a aop style