Improved error handling on coind_online? function