Fixed the error propagation on the 'begin' function.
Merge pull request #2 from ericklucena/master

Fixed the error propagation on the 'begin' function.