Fix module function calling disconnectServer