:snail: parse-int function and shutdown hook