The socket will be closed - the OS will automatically do this, see: Using SO_REUSEADDR - What happens to previously open socket?
Instead of trying to handle SIGKILL, which won't work, solve the problem at start:
Use the SO_REUSEADDR
socket option which allows you to reuse the port immediately.