im trying to prevent my app from crashing after having an error when I try to connect to an offline HC-05 (ex. "error 507 unable to connect. is the device turned on?") what do I do and how do I do it? i apologize for my code blocks, I'm not so sure what I'm doing