Upon the death before retirement of any member from any cause other than injury received during the performance of his duty or sickness caused by the discharge of his duty, the system shall pay to such person as he nominates, or otherwise to his legal representative, an amount equal to all his contributions to the fund and one-half of all interest credited to his account.