crypto: pcrypt - call the complete function on error