finish transaction