Everything is working now.

Fixed the unstuck code.
Added so it blacklists if sap target is invalid.