Implemented reset() and panic() for ports.