Release object when error occurs
Put localhost in default exceptional list