if file is opened, source code listener is unregistered