insertAfter as a finally block