do not delete pending work and return error

Change-Id: I0bd6191dc55e39e1634628e870e875df9054169a
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>