* fix: improve error handling for application handle retrieval * fix: correct argument passing for command execution and improve URL stripping logic