Fixed problem with 1st slave generating errors on closing