When shutting down Tomcat 4.1.24 on Solaris 9 I get the following error:

Stopping service Tomcat-Standalone
Nov 14, 2003 11:14:27 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket
SEVERE: Caught exception trying to unlock accept.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:158)
at java.net.Socket.connect(Socket.java:434)
at java.net.Socket.connect(Socket.java:384)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at org.apache.tomcat.util.net.PoolTcpEndpoint.closeSe rverSocket(PoolTcpEndpoint.java:326)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptS ocket(PoolTcpEndpoint.java:397)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:529)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Nov 14, 2003 11:14:27 AM org.apache.tomcat.util.net.PoolTcpEndpoint closeServerSocket
SEVERE: Caught exception trying to close socket.
java.lang.NullPointerException
at org.apache.tomcat.util.net.PoolTcpEndpoint.closeSe rverSocket(PoolTcpEndpoint.java:338)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptS ocket(PoolTcpEndpoint.java:397)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:529)
at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Nov 14, 2003 11:14:27 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
WARNING: Reinitializing ServerSocket

When started the server runs normally. This error only happens when I shut the server down. If I restart the server everything appears to work normally. Any ideas?