Fixed leak in thread-sleep! and port