Making sure all exceptions are handled and just a simple 'failure' message is printed