You have to make sure that you have drained the mushrooms properly before placing them on top of the puff pastry. Any additional liquid in there will be absorbed by the pastry, making it soggy, instead of crunchy, straight out of the oven.