hardware hacking: Improve error handling in apps