Put the whole core inside of Try/exception