added 5 second delay on error