Post the marination time, add about 3/4th cup of water and boil it. Boil till the water dries up.
In a pan heat oil and fry onions. Once the onion turns golden brown, add the mushrooms. Fry for few mins and make sure the water dries up completely.