runtime: Add exception handling.