Respect @shutdown otherwise you can not handle QUIT signal properly