All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
If you had agreed with him on the length of service for a specific fee and then he asked you to stop and not proceed, then in this case, you deserve the full fee which he is supposed to give you. This is because he has no right to invalidate the agreement except with your consent, so long as you were providing the (agreed upon) service, and nothing happened which can be an excuse to invalidate the agreement.
Allah Knows best.