change sdk to 20
fix close on exception