The Effects of Contracting and Labor Search on Risks in Financial Markets