Exit Handler fixed

Signed-off-by: FunThomas424242 <funthomas424242@gmail.com>