Before revision:  In a complete market setting the optimal solution is given explicitly for contracts with mortality risk using a martingale approach for constrained non-concave optimization problems.
After revision:  In a setting with unhedgeable mortality risk and complete financial market, the optimal solution is given explicitly for contracts with mortality risk using a martingale approach for constrained non-concave optimization problems.