Washer doors (most that is) have a time delay built in after the washer stops, this is mostly in the interlock, (the bit the door catch fits into) these can sometimes stop working and wont let you open the door.
There is also a water sensor running up to the interlock that wont let you open...