adds exception handling to air quality save function