Modify error handlings in Future<'T>