Server only shutsdown if running

Socket errors are just ignored