(1) Sending error to correct device. Freeing and killing pointers.