Handle errors in route execution. Closes #6.