Fix bug where the io_service could incorrectly run out of work (and so shut down) when an overlapped I/O function fails immediately.