enhanced http status message and added shutdown hook