In Faith/Devinject you have an option to close after injection.