Added exception handling in main
Added exception handling in main

Based on PR https://github.com/JPETTomography/j-pet-framework-examples/pull/94

JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples,JPETTomography/j-pet-framework-examples