Performance and robustness, better errors

DESCRIPTION:
- The socket is now closed after usage
- Better error management
- Updated tests
- Typo in package.json
- Bumped to 0.2.3

Signed-off-by: dozoisch <hugo@dozoisch.com>