Bindd variable if exception is raised.
Implement logs collecting and sending it to BigQuery.