Added some exception handling.
Merge branch 'master' of https://github.com/genepi/genepi-libs.git