[fix] using more specialized exceptions in catch clause