The earnings of a prisoner participating in a work release program, less any payroll deductions required or authorized by law, shall be deposited with the department in a trust fund account. Such earnings shall not be subject to attachment or garnishment in the hands of the department. The commissioner is authorized to provide for disbursements from the trust fund account for any or all of the following purposes:
The balance of such earnings, if any, after disbursements for any of the foregoing purposes shall be paid to the prisoner upon termination of his imprisonment.
N.Y. Correct.Law § 154