Was the spark plug in tight? I've often noticed that the plugs seem to be loose when I go the remove them for what ever reason.
If you swap the #5 coil to another spot, say swap with #2 coil, does the problem still happen at #5, or does it then happen at the new location, ie is it the cylinder or is it the coil that is misfiring?