Prevent zombie processes during close