#754 catch exception to stop application from crashing