Handle exceptions on receive methods
Merge pull request #4 from HopIn/master

Handle exceptions