IP address cleaning, catch exceptions, add selfstopping