rename shutdown to trap and pass in signal