Manage can also take an Erlang port.
Add guard to ensure port is a port.