funcion shutdown