Added MTSSource.close() + bugfixes