(c)nothing in this section shall affect the liability of any person under any contract, or shall be construed as imposing any liability upon any person from which he is exempted by any contract or by the provisions of any law for the time being in force, or as affecting the right of any person to limit his liability in the manner provided by such law.