If the method raises an exception, the slot will not be released.