The global recession in 2009 took a sizeable toll on the Bahamas , resulting in a contraction in GDP and a widening budget deficit .