Midlothian Snowsports Centre was forced to close as Scottish Fire and Rescue Services fought to contain a wildfire on the surrounding hillside.