Updated proejct settings; added disconnect on error