unlocking with finally