Remove duplicate code.
Silly test to cover finally completely in jacoco, more for testing this in jacoco