You can sublet the apartment, unless this is specifically excluded in the contract.
Of course you will be liable for any damage or unpaid bills at the end of the year.
And what about advance rent? You should get this back, minus the bills for the last month.