added suport for close and close callback status code