add initialization exception
add closed exception
Merge pull request #10 from dustismo/hotfix/exceptions

add init exception