Life-cycle portfolios, unemployment and human capital loss