The releaseFromEdit() should be done in a finally block so that it is always executed.