updated rake task to live only as long as parent