added config option for releasing pets when they die
fixes #179