you apply for a re-entry permit before leaving the country. If you leave without one you forfeit your visa when exiting the country. (This is assuming it works just like a non-b)
If you're planning on extending it by 1 year, I would suggest attempting to do it before leaving.