implemented basic reconnection functionality
add separate option to be able to deactivate reconnection completely
fix crash on manual reconnect after connection loss