Ok, thanks.

So perfective gets used when you want to emphasise the result (or lack of result) of an action, whereas imperfective is used when a result is not seen as relevent. That sounds quite sensible, and fits with what I already know too. I think the idea I had picked up from my book about perfective being used when someone fails to do an expected action was just not well explained. Seems clear enough now though!