Added another shutdown method for jenkins