Add smartDisconnect config feature. Closes #8