Handling exceptions while checking if os supports fsfreeze