prevent ending from breaking routes. Fixes #3
version 0.5
Merge pull request #4 from carlesjove/dev

Merge dev into master. Fixes #3