Rescue all exceptions and return them in json