error out instead of hanging when promise fails.