will my visa terminate after i end my contract?

You will be able to remain in Hong Kong till the expiry of your visa, however you will not be eligible to work.