Take the chicken out of the refrigerator about 30 minutes prior to cooking to allow it to come to room temperature.
Heat the oil in a large Dutch oven or heavy-bottomed pan. Fry the chicken on both sides until golden, about 5 minutes on each side. Remove from the pan. Remove the habanero/ Scotch bonnet from the marinade and discard it.
Place the onions and the marinade in the pot and cook the onions for about 5 minutes.
Cover the pot and continue cooking the onions for about 15-20 minutes or until the onions are soft and start to caramelize.
Return the chicken to the pot, making a place for it between the onions, turn it a couple of times into the sauce to coat, and add the chicken stock.
Bring to a simmer, cover, and cook the chicken for about 20-25 minutes or until cooked through.
If you stick a toothpick into the thickest part of the chicken thigh the juices should run clear. If the juices are still pink, continue cooking the stew, checking again from time to time until the chicken is cooked through.
Serve with rice.