I implemented an entrypoint, and just put a try-catch around the main entry point... that worked great!