Fix capture delay, simplify implementation

All handlers now return OK (for success) or ERROR <message> otherwise
which considerably simplifies the implementation