Might not get called due to exceptions.