Improved behavior or close() and added terminate() etc..

Improved external error behavior now terminating running commands. Also
improved the result passed to command callbacks. Revised examples, tests
and benchmark according to new implementation.
Updated readme