miniLock now stops when passed not valid file