client: Create proper exception handling
Merge pull request #20 from Harshavardhana/master

client: Create proper exception handling