Error handling

Alert appears if script is unavailable or some similar error occured