adding error handler

need to work out when vertex not found aka loop cannot complete.
Merge pull request #23 from yonderHub/loop-inteface

adding error handler