simplified exceptions
Merge pull request #92 from XeTK/singleinstance

simplified exceptions