1.1-dev: implemented auto-reconnection on error or kill.