wrapping notification center code in try catch block to support none mountain lion systems