Added a timeout and fixed error message

poop