always print Java exceptions to logs