What you pay as normal margin will be fixed when you enter a carry trade and it will be released back into your account when you close the trade. The loss of 5000 will be deducted from the free cash in your account. If there is a shortfall of funds in your account, then this will eat up into your exposure margin and there will be a shortfall in your margin oblgation to the exchange. A penalty will be charged for the margin shortfall amount.