Landlords at a popular seaside pub dating back more than 200 years have stunned punters by announcing its sudden closure.