Added loging of errors