you also need to reset it in case of an exception being thrown