Check that you're not attempting to connect to your sftp channel more than once at a time in your codebase. if you need a new connection close the previous connection before attempting to re-connect again. Hope this helps anyone in the future.